package servlet;
import java.util.List;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.catalina.*;
import bean.Users;
import biz.IUsersBiz;
import biz.impl.*;
@WebServlet("/GetUsersAll")
public class GetUsersAll extends HttpServlet {
	IUsersBiz biz=new UsersBiz();
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		List<Users> list=biz.GetUsersAll();
		request.setAttribute("list", list);
		System.out.println(list);
		request.getRequestDispatcher("Manager.jsp").forward(request, response);
	
		
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request,response);
	}

}
